<%@ page language="java" contentType="text/html; charset=ISO-8859-1" 
 pageEncoding="ISO-8859-1"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
 "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 <title>Visualiser Infractions</title>
</head>
<body>
<a href='<%=response.encodeURL("index")%>'><b>Main page</b></a>
	<br>
	<s:if test="infractions.size() > 0">
		<table>
			<tr>
				 <th>ID</th>
 				 <th>Description</th>
 				 <th>Niveau Gravite</th>
			</tr>
			<s:iterator status="stat" value="infractions">
				<tr>
					<td><s:property value="id" /></td>
					<td><s:property value="description" /></td>
					<td><s:property value="niveau" /></td>
				</tr>
			</s:iterator>
		</table>
	</s:if>
	<s:else>
	<div>Aucune infraction existante</div>
	</s:else>
</body>
</html>